const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
	transpileDependencies: true,
	publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
	lintOnSave: false,
	productionSourceMap: false,
	devServer: {
		hot: true,
		host: '0.0.0.0',
		port: 80,
		proxy: {
			[process.env.VUE_APP_BASE_URL]: {
				target: 'http://localhost:8881',
				changeOrigin: true,
				pathRewrite: {
					['^'+process.env.VUE_APP_BASE_URL]: '/api'
				}
			}
		}
	}
})
